<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
    <% form_tag scheduled_task_logs_path, :method => 'get' do %>
      <table style="border:0px">
        <tr>
          <th> <%= label_tag t('activerecord.attributes.scheduled_task.task') %> </th>
          <th> <%= text_field_tag :search_name, params[:search_name] %> </th>
          <th> <%= submit_tag t('btn_search'), :name => nil %> </th>
        </tr>
      </table>
    <% end %>

    <div class="line-label">
      <%= page_entries_info(@scheduled_task_logs) %>
    </div>
    
    <% if @scheduled_task_logs.size > 0 %>
      <% paginated_section(@scheduled_task_logs, options_will_paginate) do %>
        <table>
          <thead>
            <tr>
              <th><%=t('activerecord.attributes.scheduled_task.task')%></th>
              <th><%=t('activerecord.attributes.scheduled_task_log.start')%></th>
              <th><%=t('activerecord.attributes.scheduled_task_log.end')%></th>
              <th><%=t('activerecord.attributes.scheduled_task_log.success')%></th>
              <th><%= t('title_actions') %></th>
            </tr>
          </thead>
          <% @scheduled_task_logs.each do |scheduled_task_log| %>
            <tr>
              <td><%=h scheduled_task_log.scheduled_task.task.name %></td>
              <td><%=h scheduled_task_log.start %></td>
              <td><%=h scheduled_task_log.end %></td>
              <td><%=h scheduled_task_log.success %></td>
              <td class="action"><%= link_to t('btn_show'), scheduled_task_log_path(scheduled_task_log) %></td>
            </tr>
          <% end %>
        </table>
      <% end %>
    <% end %>

  </div>

  <div class="portlet-footer">
  </div>

</div>